{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "7bfa305f",
   "metadata": {},
   "source": [
    "# 搜索POI"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f311043f",
   "metadata": {},
   "source": [
    "* URL接口： https://restapi.amap.com/v3/place/text?parameters"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "df851a82",
   "metadata": {},
   "source": [
    "* 请求参数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ebe88d80",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "pd.read_html('https://lbs.amap.com/api/webservice/guide/api/search')"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b7dde0a0",
   "metadata": {},
   "source": [
    "* 查询的两种参数：\n",
    "\n",
    "> 1.keywords(查询关键字)\n",
    "\n",
    "> 2.types(查询POI类型)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "e7084252",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.586605,23.548852'"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 1.调用requests 模块（Google Chrome 浏览器）\n",
    "import requests\n",
    "\n",
    "# 2.请求方法： GET       \n",
    "\n",
    "# 3.URL：https://restapi.amap.com/v3/geocode/geo?parameters\n",
    "geo_url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "\n",
    "# 4.准备参数，用于交换数据payload\n",
    "# payload用字典的形式来写\n",
    "payload = {\n",
    "    \"key\":\"5d277cd4a3ca53acd659a1d596571f2f\",\n",
    "    \"address\":\"广东省广州市从化区\"\n",
    "}\n",
    "\n",
    "# 5.发起请求\n",
    "r = requests.get(url=geo_url,params=payload)\n",
    "\n",
    "广州南方学院_location = r.json()[ 'geocodes'][0]['location']\n",
    "广州南方学院_location "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "ba6402da",
   "metadata": {},
   "outputs": [],
   "source": [
    "# extensions = all\n",
    "# 1.调用requests 模块（Google Chrome 浏览器）\n",
    "import requests\n",
    "\n",
    "# 2.请求方法： GET       \n",
    "\n",
    "# 3.URL：https://restapi.amap.com/v3/geocode/regeo?parameters\n",
    "geo_url = \"https://restapi.amap.com/v3/place/text?parameters\"\n",
    "\n",
    "# 4.准备参数，用于交换数据payload\n",
    "# payload用字典的形式来写\n",
    "payload = {\n",
    "    \"key\":\"5d277cd4a3ca53acd659a1d596571f2f\",\n",
    "    \"address\":\"广东省广州市从化区\",\n",
    "    \"location\":广州南方学院_location ,\n",
    "    \"extensions\":\"all\",\n",
    "    \"keywords\":\"快乐逸家\"\n",
    "}\n",
    "\n",
    "# 5.发起请求\n",
    "r = requests.get(url=geo_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "9308e432",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '16',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.0', 'meal_ordering': '0'},\n",
       "   'recommend': '3',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dd1ef150251d88b3ed0d0de4c45478d6'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513355411',\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '18889156828',\n",
       "   'id': 'B0FFMGYNGR',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 05:34:33',\n",
       "   'website': [],\n",
       "   'address': '温泉镇笃行路20-24号广州南方学院商业中心3层3F-031',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '东北家宴(广州南方学院店)',\n",
       "   'location': '113.680142,23.630145',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.2', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1a53063a271160e30840cfa0a674b855'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/201d29bf5a57c970e0ce92a00bf7e6db'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/34d86f462fd2f84e33dc4a68c9131660'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513116501',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '花都区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '18002266166',\n",
       "   'id': 'B0G3OUB5D5',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.193958,23.468064',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-29 00:54:03',\n",
       "   'website': [],\n",
       "   'address': '金狮大道东南航公寓东北侧约70米',\n",
       "   'adcode': '440114',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '狮岭',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '定宪家宴',\n",
       "   'location': '113.194007,23.467885',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFFA064X',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '52.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/10cede710aef6c2906da570991431d7c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413332110',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-23331891;020-23331892',\n",
       "   'id': 'B0FFGH185V',\n",
       "   'tag': '酱骨架一块,拔丝地瓜,饺子,凉拌东北大拉皮,采蘑菇的小笨鸡,松子鱼,羊肉饺子,大包子,炒土豆丝,羊肉串,绝味牛肉,豆腐,草帽饼,手撕包菜,豆沙饼',\n",
       "   'event': [],\n",
       "   'entr_location': '113.387892,22.938388',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-07-01 00:14:10',\n",
       "   'website': [],\n",
       "   'address': '亚运大道1号永旺梦乐城5层5001号',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '石碁',\n",
       "   'indoor_data': {'cmsid': 'GD0012060210500049',\n",
       "    'truefloor': 'F5',\n",
       "    'cpid': 'B0FFFA064X',\n",
       "    'floor': '5'},\n",
       "   'childtype': '201',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(番禺永旺店)',\n",
       "   'location': '113.388167,22.937803',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413421522',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0IA3OE9ZH',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 06:42:33',\n",
       "   'website': [],\n",
       "   'address': '新置路港龙商务中心东北侧约40米',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '大石',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '毛府家宴(新置路店)',\n",
       "   'location': '113.323618,23.014532',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '48.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0755a39b814b2acd19d83c3b9d4e59b7'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413135220',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '南沙区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-34980288',\n",
       "   'id': 'B0FFG7POET',\n",
       "   'tag': '酱龙骨,松子鱼,面点包子,铁板土豆片,酸菜猪肉水饺,蓝莓汁,羊肉水饺,滑子菇野菜,干炸小黄花,小炒包菜,凉拌苦苣,豆腐皮,玉米饼,拌干豆腐丝,羊杂',\n",
       "   'event': [],\n",
       "   'entr_location': '113.403793,22.798774',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 17:09:23',\n",
       "   'website': [],\n",
       "   'address': '大岗镇兴业路70号',\n",
       "   'adcode': '440115',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '大岗',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(南沙大岗店)',\n",
       "   'location': '113.403777,22.798654',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFJA1NO0',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '75.00', 'rating': '4.8', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0232292e473d48b73ed32a3e48fa7624'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2f121afc2fe5f2ddb37681c352a97bfd'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/37e1e1addea3380f8d43f677880c46d9'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413145121',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '南沙区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-84682637',\n",
       "   'id': 'B0HDA1ZFIY',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 21:54:17',\n",
       "   'website': [],\n",
       "   'address': '悠方天地A栋2楼北方家宴',\n",
       "   'adcode': '440115',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(南沙悠方店)',\n",
       "   'location': '113.519543,22.798604',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFHMLL6L',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '60.00', 'rating': '4.8', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/051e6519701bd53e99cc04b5f6911acf'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413326601',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-31074265;13229016455',\n",
       "   'id': 'B0FFJRH1J6',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 23:30:30',\n",
       "   'website': [],\n",
       "   'address': '钟村祈福缤纷世界鸿福路二楼名家七街50号',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '祈福',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(番禺祈福店)',\n",
       "   'location': '113.332326,22.968370',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFFAETOH',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '68.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/04151e52c88a5f0b36e8fb8ec72ed78f'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413630922',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-31603209',\n",
       "   'id': 'B0FFKX40I4',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 18:06:04',\n",
       "   'website': [],\n",
       "   'address': '萝岗街道开创大道1934号萝岗奥园广场H6栋3楼',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(香雪奥园店)',\n",
       "   'location': '113.498300,23.173826',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFH12BQ4',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '73.00', 'rating': '4.8', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0755a39b814b2acd19d83c3b9d4e59b7'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413630600',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-32219018',\n",
       "   'id': 'B0FFF9S5NX',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.453075,23.167061',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 16:20:49',\n",
       "   'website': [],\n",
       "   'address': '科学大道193-195号优托邦科学城店A座F4层',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': 'GD0012190210400053',\n",
       "    'truefloor': 'F4',\n",
       "    'cpid': 'B00141KFGE',\n",
       "    'floor': '4'},\n",
       "   'childtype': '201',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(优托邦科学城店A座)',\n",
       "   'location': '113.452982,23.167719',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010044_9021',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFF9QGXS',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '60.00', 'rating': '4.8', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0755a39b814b2acd19d83c3b9d4e59b7'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413425312',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-84590769',\n",
       "   'id': 'B0FFFOU09Q',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 18:58:35',\n",
       "   'website': [],\n",
       "   'address': '洛溪新城洛溪食街C1-5号',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '洛溪',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '324',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(洛溪店)',\n",
       "   'location': '113.296577,23.046421',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F012043_777081',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513243710',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0HBLCD39A',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.588189,23.530244',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-21 22:59:38',\n",
       "   'website': [],\n",
       "   'address': '海塱东路与江湾路交叉口东北60米',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '江埔',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '来家宴私房菜',\n",
       "   'location': '113.588197,23.530124',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFGSSPAY',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.4', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2ab5d475f26239bc34032ba196f91484'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/971a84b35be5802074d2e89f27340c03'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413628401',\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '白云区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0FFJCNS0G',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.30416,23.235134',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 00:27:57',\n",
       "   'website': [],\n",
       "   'address': '荟贤路与百顺东路交叉口东北20米',\n",
       "   'adcode': '440111',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '白云大道',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '新客家宴会厅(岭南新世界店)',\n",
       "   'location': '113.304344,23.234869',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFI7P6NT',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '78.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;东北菜',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0232292e473d48b73ed32a3e48fa7624'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b2b4a9c213ab5e9c627bfced88666e5a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0aa34b0cdd8f9eaaf45ffc1535918ade'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413628221',\n",
       "   'typecode': '050113',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '白云区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-37412459',\n",
       "   'id': 'B0GK0A8FZ2',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.281629,23.238051',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 22:57:04',\n",
       "   'website': [],\n",
       "   'address': '嘉禾望岗鹤龙二路85号嘉禾金铂天地4楼411铺',\n",
       "   'adcode': '440111',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '嘉禾',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(嘉禾金铂天地店)',\n",
       "   'location': '113.281317,23.239106',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'recommend': '0',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413544902',\n",
       "   'typecode': '072101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '增城区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '4008845966',\n",
       "   'id': 'B0FFKTG64F',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.620942,23.117583',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-18 01:39:22',\n",
       "   'website': [],\n",
       "   'address': '府前路与府前东路交叉口东北60米',\n",
       "   'adcode': '440118',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '新塘',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '来电(湘为善家宴)',\n",
       "   'location': '113.621054,23.117509',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 26,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b19223f4",
   "metadata": {},
   "source": [
    "## 1.搜索关键词"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "467474df",
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "965490f3",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用requests 模块（Google Chrome 浏览器）\n",
    "import requests\n",
    "\n",
    "# 2.请求方法： GET       \n",
    "\n",
    "# 3.URL：https://restapi.amap.com/v3/geocode/geo?parameters\n",
    "geo_url = \"https://restapi.amap.com/v5/place/around?parameters\"\n",
    "\n",
    "# 4.准备参数，用于交换数据payload\n",
    "# payload用字典的形式来写\n",
    "payload = {\n",
    "    \"key\":\"5d277cd4a3ca53acd659a1d596571f2f\",\n",
    "    \"location\":广州南方学院_location ,\n",
    "    \"keywords\":\"中餐厅\"\n",
    "}\n",
    "\n",
    "# 5.发起请求\n",
    "r = requests.get(url=geo_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "2206defd",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '16',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.0', 'meal_ordering': '0'},\n",
       "   'recommend': '3',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dd1ef150251d88b3ed0d0de4c45478d6'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513355411',\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '18889156828',\n",
       "   'id': 'B0FFMGYNGR',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 05:34:33',\n",
       "   'website': [],\n",
       "   'address': '温泉镇笃行路20-24号广州南方学院商业中心3层3F-031',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '东北家宴(广州南方学院店)',\n",
       "   'location': '113.680142,23.630145',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.2', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1a53063a271160e30840cfa0a674b855'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/201d29bf5a57c970e0ce92a00bf7e6db'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/34d86f462fd2f84e33dc4a68c9131660'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513116501',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '花都区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '18002266166',\n",
       "   'id': 'B0G3OUB5D5',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.193958,23.468064',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-29 00:54:03',\n",
       "   'website': [],\n",
       "   'address': '金狮大道东南航公寓东北侧约70米',\n",
       "   'adcode': '440114',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '狮岭',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '定宪家宴',\n",
       "   'location': '113.194007,23.467885',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFFA064X',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '52.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/10cede710aef6c2906da570991431d7c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413332110',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-23331891;020-23331892',\n",
       "   'id': 'B0FFGH185V',\n",
       "   'tag': '酱骨架一块,拔丝地瓜,饺子,凉拌东北大拉皮,采蘑菇的小笨鸡,松子鱼,羊肉饺子,大包子,炒土豆丝,羊肉串,绝味牛肉,豆腐,草帽饼,手撕包菜,豆沙饼',\n",
       "   'event': [],\n",
       "   'entr_location': '113.387892,22.938388',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-07-01 00:14:10',\n",
       "   'website': [],\n",
       "   'address': '亚运大道1号永旺梦乐城5层5001号',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '石碁',\n",
       "   'indoor_data': {'cmsid': 'GD0012060210500049',\n",
       "    'truefloor': 'F5',\n",
       "    'cpid': 'B0FFFA064X',\n",
       "    'floor': '5'},\n",
       "   'childtype': '201',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(番禺永旺店)',\n",
       "   'location': '113.388167,22.937803',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': [], 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413421522',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0IA3OE9ZH',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 06:42:33',\n",
       "   'website': [],\n",
       "   'address': '新置路港龙商务中心东北侧约40米',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '大石',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '毛府家宴(新置路店)',\n",
       "   'location': '113.323618,23.014532',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '48.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0755a39b814b2acd19d83c3b9d4e59b7'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413135220',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '南沙区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-34980288',\n",
       "   'id': 'B0FFG7POET',\n",
       "   'tag': '酱龙骨,松子鱼,面点包子,铁板土豆片,酸菜猪肉水饺,蓝莓汁,羊肉水饺,滑子菇野菜,干炸小黄花,小炒包菜,凉拌苦苣,豆腐皮,玉米饼,拌干豆腐丝,羊杂',\n",
       "   'event': [],\n",
       "   'entr_location': '113.403793,22.798774',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 17:09:23',\n",
       "   'website': [],\n",
       "   'address': '大岗镇兴业路70号',\n",
       "   'adcode': '440115',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '大岗',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(南沙大岗店)',\n",
       "   'location': '113.403777,22.798654',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFJA1NO0',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '75.00', 'rating': '4.8', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0232292e473d48b73ed32a3e48fa7624'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2f121afc2fe5f2ddb37681c352a97bfd'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/37e1e1addea3380f8d43f677880c46d9'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413145121',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '南沙区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-84682637',\n",
       "   'id': 'B0HDA1ZFIY',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 21:54:17',\n",
       "   'website': [],\n",
       "   'address': '悠方天地A栋2楼北方家宴',\n",
       "   'adcode': '440115',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(南沙悠方店)',\n",
       "   'location': '113.519543,22.798604',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFHMLL6L',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '60.00', 'rating': '4.8', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/051e6519701bd53e99cc04b5f6911acf'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413326601',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-31074265;13229016455',\n",
       "   'id': 'B0FFJRH1J6',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 23:30:30',\n",
       "   'website': [],\n",
       "   'address': '钟村祈福缤纷世界鸿福路二楼名家七街50号',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '祈福',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(番禺祈福店)',\n",
       "   'location': '113.332326,22.968370',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFFAETOH',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '68.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/04151e52c88a5f0b36e8fb8ec72ed78f'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413630922',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-31603209',\n",
       "   'id': 'B0FFKX40I4',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 18:06:04',\n",
       "   'website': [],\n",
       "   'address': '萝岗街道开创大道1934号萝岗奥园广场H6栋3楼',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(香雪奥园店)',\n",
       "   'location': '113.498300,23.173826',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFH12BQ4',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '73.00', 'rating': '4.8', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0755a39b814b2acd19d83c3b9d4e59b7'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413630600',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '黄埔区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-32219018',\n",
       "   'id': 'B0FFF9S5NX',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.453075,23.167061',\n",
       "   'indoor_map': '1',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 16:20:49',\n",
       "   'website': [],\n",
       "   'address': '科学大道193-195号优托邦科学城店A座F4层',\n",
       "   'adcode': '440112',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': [],\n",
       "   'indoor_data': {'cmsid': 'GD0012190210400053',\n",
       "    'truefloor': 'F4',\n",
       "    'cpid': 'B00141KFGE',\n",
       "    'floor': '4'},\n",
       "   'childtype': '201',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(优托邦科学城店A座)',\n",
       "   'location': '113.452982,23.167719',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F010044_9021',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFF9QGXS',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '60.00', 'rating': '4.8', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1563a5c6af4222d4925b2109f29cdb66'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/035c514596b8f5dbc2fd838b8ac2d35a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0755a39b814b2acd19d83c3b9d4e59b7'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413425312',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '番禺区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-84590769',\n",
       "   'id': 'B0FFFOU09Q',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': [],\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 18:58:35',\n",
       "   'website': [],\n",
       "   'address': '洛溪新城洛溪食街C1-5号',\n",
       "   'adcode': '440113',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '洛溪',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '324',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(洛溪店)',\n",
       "   'location': '113.296577,23.046421',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': 'F49F012043_777081',\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3513243710',\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '从化区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0HBLCD39A',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.588189,23.530244',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-21 22:59:38',\n",
       "   'website': [],\n",
       "   'address': '海塱东路与江湾路交叉口东北60米',\n",
       "   'adcode': '440117',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '江埔',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '来家宴私房菜',\n",
       "   'location': '113.588197,23.530124',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFGSSPAY',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '4.4', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2ab5d475f26239bc34032ba196f91484'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/971a84b35be5802074d2e89f27340c03'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413628401',\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '白云区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': [],\n",
       "   'id': 'B0FFJCNS0G',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.30416,23.235134',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 00:27:57',\n",
       "   'website': [],\n",
       "   'address': '荟贤路与百顺东路交叉口东北20米',\n",
       "   'adcode': '440111',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '白云大道',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '新客家宴会厅(岭南新世界店)',\n",
       "   'location': '113.304344,23.234869',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': 'B0FFI7P6NT',\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '78.00', 'rating': '4.7', 'meal_ordering': '0'},\n",
       "   'recommend': '0',\n",
       "   'type': '餐饮服务;中餐厅;东北菜',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0232292e473d48b73ed32a3e48fa7624'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b2b4a9c213ab5e9c627bfced88666e5a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0aa34b0cdd8f9eaaf45ffc1535918ade'}],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413628221',\n",
       "   'typecode': '050113',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '白云区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '020-37412459',\n",
       "   'id': 'B0GK0A8FZ2',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.281629,23.238051',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-30 22:57:04',\n",
       "   'website': [],\n",
       "   'address': '嘉禾望岗鹤龙二路85号嘉禾金铂天地4楼411铺',\n",
       "   'adcode': '440111',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '嘉禾',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': '202',\n",
       "   'exit_location': [],\n",
       "   'name': '北方家宴(嘉禾金铂天地店)',\n",
       "   'location': '113.281317,23.239106',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'},\n",
       "  {'parent': [],\n",
       "   'distance': [],\n",
       "   'pcode': '440000',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': []},\n",
       "   'recommend': '0',\n",
       "   'type': '生活服务;共享设备;充电宝',\n",
       "   'photos': [],\n",
       "   'discount_num': '0',\n",
       "   'gridcode': '3413544902',\n",
       "   'typecode': '072101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'citycode': '020',\n",
       "   'adname': '增城区',\n",
       "   'children': [],\n",
       "   'alias': [],\n",
       "   'tel': '4008845966',\n",
       "   'id': 'B0FFKTG64F',\n",
       "   'tag': [],\n",
       "   'event': [],\n",
       "   'entr_location': '113.620942,23.117583',\n",
       "   'indoor_map': '0',\n",
       "   'email': [],\n",
       "   'timestamp': '2022-06-18 01:39:22',\n",
       "   'website': [],\n",
       "   'address': '府前路与府前东路交叉口东北60米',\n",
       "   'adcode': '440118',\n",
       "   'pname': '广东省',\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'postcode': [],\n",
       "   'match': '0',\n",
       "   'business_area': '新塘',\n",
       "   'indoor_data': {'cmsid': [], 'truefloor': [], 'cpid': [], 'floor': []},\n",
       "   'childtype': [],\n",
       "   'exit_location': [],\n",
       "   'name': '来电(湘为善家宴)',\n",
       "   'location': '113.621054,23.117509',\n",
       "   'shopid': [],\n",
       "   'navi_poiid': [],\n",
       "   'groupbuy_num': '0'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f10b99da",
   "metadata": {},
   "source": [
    "## 2.周边搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "82c35391",
   "metadata": {},
   "outputs": [],
   "source": [
    "around_url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "\n",
    "payload = {\n",
    "    \"key\":\"5d277cd4a3ca53acd659a1d596571f2f\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \"keywords\":\"奶茶\"\n",
    "}\n",
    "r = requests.get(around_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "b445640d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '118',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '街口街新城东路荔香村3幢107铺',\n",
       "   'distance': '132',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '得闲饮茶饮品店',\n",
       "   'location': '113.587870,23.548580',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H11HPKJU'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街新城东路荔香村1栋104号铺',\n",
       "   'distance': '155',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '12.00',\n",
       "    'opentime2': '09:00-23:00',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '09:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6a8b8403cf9281e84470cbd791cdbea7'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/09d1be6f319db9c9daf5cde3c3dbf505'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/127fd4c71bdc0e3f31e2447c7a6a3f86'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '书亦烧仙草(从化荔香村店)',\n",
       "   'location': '113.588042,23.548392',\n",
       "   'tel': '18182059576;18023475669',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLFLSMI'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街新城东路荔香村一号之一自编之二',\n",
       "   'distance': '170',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '16.00',\n",
       "    'opentime2': '10:00-22:30',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '10:00-22:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7409f53c82798dba45c3bf3df5d14b2e'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f815dfeeb4f72aaa6dd0a05f0e0253a6'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/25f28a7ef8268891da0c2943e0c0c430'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '沪上阿姨(广州从化新世纪广场店)',\n",
       "   'location': '113.588218,23.548407',\n",
       "   'tel': '18028530654',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H63G7MDM'},\n",
       "  {'parent': [],\n",
       "   'address': '新城东路荔香村1栋',\n",
       "   'distance': '175',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '10.00',\n",
       "    'opentime2': '10:00-22:00',\n",
       "    'rating': '4.3',\n",
       "    'open_time': '10:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0483ebb44e19becd0f5ed153934b64ad'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/077c81cac51f69b946a8527bda931d3d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0bf8d1fe0f905e920a022c329c42c320'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '益禾堂(广州从化荔香村店)',\n",
       "   'location': '113.588242,23.548352',\n",
       "   'tel': '15975372693;19924770447',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFITO54H'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街荔香村1栋102铺',\n",
       "   'distance': '176',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '9.00',\n",
       "    'opentime2': '10:00-23:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '10:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/114f75be0bd22339b6e04f705cfa3981'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bd7df5519f76b5411598d1af1608446c'},\n",
       "    {'title': [],\n",
       "     'url': 'https://img.alicdn.com/imgextra/i4/3695320962/O1CN012Otbfc1IydiFji1II_!!3695320962-0-kbcontentapng.jpg'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '桃园三章(荔香村店)',\n",
       "   'location': '113.588116,23.548425',\n",
       "   'tel': '18998359412;17739073223',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G0D6453C'},\n",
       "  {'parent': [],\n",
       "   'address': '东成路57号',\n",
       "   'distance': '202',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '10:00-22:30',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '10:00-22:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4aca9487a001a351fbb8eaba2dd854ce'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f3f0c2a7367cbf26c8ae402320e4de7a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e1f6f2481f0b640a03b3e8efea8992af'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '平安堂凉茶(叶顺店)',\n",
       "   'location': '113.588507,23.548370',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B00140MHW0'},\n",
       "  {'parent': [],\n",
       "   'address': '西宁中路西宁横街6号',\n",
       "   'distance': '203',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '09:00-23:00',\n",
       "    'rating': '3.8',\n",
       "    'open_time': '09:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e9cd1678c76d0b37d92bc9e72d1422be'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '靓饮速递香港奶茶',\n",
       "   'location': '113.587614,23.550427',\n",
       "   'tel': '15815817918',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFF5VU96'},\n",
       "  {'parent': [],\n",
       "   'address': '東成路55號',\n",
       "   'distance': '204',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '12.00',\n",
       "    'opentime2': '10:00-22:00',\n",
       "    'rating': '4.3',\n",
       "    'open_time': '10:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2f54f71210faff24ab7a1cb2393ff9d1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/73a24a597cf6121cf88f09c6e8e7360a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5c4be6cffec1c9dae8498b3cc2c1c0c0'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '1点点(东成店)',\n",
       "   'location': '113.588506,23.548370',\n",
       "   'tel': '020-37503895',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFL4GX04'},\n",
       "  {'parent': 'B0FFF2OGO9',\n",
       "   'address': '东成路51号之五',\n",
       "   'distance': '214',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '15.00',\n",
       "    'opentime2': '10:00-23:00',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '10:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f6572a44c614948f4d6e806b6183a870'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2c648ceb1b3d04724dd768abe670bfb1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/02cc35cc13b4449fedfe1fe913f32887'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '从化区',\n",
       "   'name': '挞柠(从化新世纪广场店)',\n",
       "   'location': '113.588638,23.548364',\n",
       "   'tel': '13710262043',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G3L6DKJ9'},\n",
       "  {'parent': [],\n",
       "   'address': '东城路51号之6',\n",
       "   'distance': '214',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周五09:00-20:00,周六至周日10:00-22:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '09:00-20:00 10:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1d874b1b4170ffaa9d9f00ce5b14c261'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0692a695b2a64617453723d28ab9c7e9'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c0fe656fe75a230add4517ec863dbd81'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '古茗(从化东成路店)',\n",
       "   'location': '113.588634,23.548354',\n",
       "   'tel': '18122026003;15057503970',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HKJ53VG9'},\n",
       "  {'parent': [],\n",
       "   'address': '西宁中路西宁横街4-4',\n",
       "   'distance': '219',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '13.00',\n",
       "    'opentime2': '周一至周五09:00-20:00,周六至周日10:00-22:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '09:00-20:00 10:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1d874b1b4170ffaa9d9f00ce5b14c261'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0692a695b2a64617453723d28ab9c7e9'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0f922d05a443a3afaf40bc27c6b7050d'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '古茗(从化西宁横街店)',\n",
       "   'location': '113.587698,23.550690',\n",
       "   'tel': '15057503970;17306673065',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HDXA8H0L'},\n",
       "  {'parent': [],\n",
       "   'address': '街口东成路51-4号',\n",
       "   'distance': '221',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '15.00',\n",
       "    'opentime2': '10:00-22:00',\n",
       "    'rating': '4.6',\n",
       "    'open_time': '10:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6d7a87c515c23601e0c674b6797a1ae4'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cf25aff55852ea057e470245abd5a817'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0478f9f94fbf9fb310d59d40585fe81b'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '茶百道(从化东成店)',\n",
       "   'location': '113.588724,23.548424',\n",
       "   'tel': '19865183719',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HBMAKRFU'},\n",
       "  {'parent': [],\n",
       "   'address': '东成路49号',\n",
       "   'distance': '246',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '7.00',\n",
       "    'opentime2': '09:30-22:30',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '09:30-22:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9276cb53a889e9013c71015e77aca5eb'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2dbec443c51db824067c6b41b1505bc1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/69f439833ab9354ee41019196e7db701'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '靠杯奶茶kaocup(从化店)',\n",
       "   'location': '113.588859,23.548359',\n",
       "   'tel': '18520797118;13360023309',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HA2BO4Y6'},\n",
       "  {'parent': [],\n",
       "   'address': '西宁中路华莱士对面',\n",
       "   'distance': '253',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周二,周四至周日:13:00-23:00',\n",
       "    'rating': '3.7',\n",
       "    'open_time': '13:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c689e6de10f59bc77a33b2535694f92f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/63a027f4228fce2060f90b5b700d3f8c'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'C茶(西宁中路华莱士对面巷子)',\n",
       "   'location': '113.588399,23.550423',\n",
       "   'tel': '15902023343',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLDK50F'},\n",
       "  {'parent': [],\n",
       "   'address': '城内路青云里西南侧',\n",
       "   'distance': '257',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dc2e61205e0b945b2bd569ca484dbd28'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '一族茶',\n",
       "   'location': '113.584567,23.547624',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFM1Y6EZ'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街城内路38号',\n",
       "   'distance': '259',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/16f0b9aaee9411051204cb2d30341b6f'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '壹海西餐奶茶店',\n",
       "   'location': '113.584442,23.547662',\n",
       "   'tel': '18677557114',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HKHDAEB8'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街东城路49号之八',\n",
       "   'distance': '259',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '11:00-22:00',\n",
       "    'rating': '3.8',\n",
       "    'open_time': '11:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'LINLEE·邻里手打柠檬茶',\n",
       "   'location': '113.589105,23.548411',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H14CU3IC'},\n",
       "  {'parent': [],\n",
       "   'address': '东成路49-10',\n",
       "   'distance': '259',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '15.00',\n",
       "    'opentime2': '10:00-22:30',\n",
       "    'rating': '4.0',\n",
       "    'open_time': '10:00-22:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/684cc349058a686bf228a9aa7f59774c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/857884fe58939927e17f8bc5496e1927'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4e25a78b8d5a5733d5755b6fa64782e4'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '咕嚕咕嚕(从化东成路店)',\n",
       "   'location': '113.589100,23.548381',\n",
       "   'tel': '15919697553',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFF045OX'},\n",
       "  {'parent': [],\n",
       "   'address': '街口镇西宁中路111号之三',\n",
       "   'distance': '263',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '10.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/15ceecd7ba230be94cecfecbc9c061e9'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '徐其修凉茶(西宁中路店)',\n",
       "   'location': '113.587282,23.551217',\n",
       "   'tel': '13926125556',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140I5J7'},\n",
       "  {'parent': [],\n",
       "   'address': '街口西宁中路85号1栋',\n",
       "   'distance': '269',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [], 'rating': '3.9'},\n",
       "   'biz_type': [],\n",
       "   'cityname': '广州市',\n",
       "   'type': '购物服务;专卖店;专营店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/13b5259ebf5a7255241dd8e1c4007c89'}],\n",
       "   'typecode': '061200',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '桃园三章(西宁中路店)',\n",
       "   'location': '113.587983,23.550939',\n",
       "   'tel': '18565027260',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKRN4R3'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "fc99d8df",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
